<?php
/**
 * Created by PhpStorm.
 * User: 我想有个家
 * Date: 2020/4/6
 * Time: 18:03
 */

namespace App\Lib;


use Hyperf\Utils\ApplicationContext;

class Redis {
    /**
     * 获取redis链接
     * @return \Hyperf\Redis\Redis|mixed
     */
    public static function get() {
        $container = ApplicationContext::getContainer();
        return $container->get(\Hyperf\Redis\Redis::class);
    }
}
